package cn.edu.sdjzu.xg.bysj.domain;

import java.io.Serializable;

public class University implements Comparable<University>, Serializable {
    public University(Integer id,String description,String no,String remarks) {
        this.id = id;
        this.description = description;
        this.no = no;
        this.remarks = remarks;
    }

    @Override
    public int compareTo(University o){
        return o.id - this.id;
    }
    public String toString(){
        final String TAB="   ";
        return "cn.edu.sdjzu.xg.bysj.domain.University(" +
                "id=" + this.id + TAB +
                "name=" + this.description + TAB +
                "no=" + this.no + TAB +
                "remarks=" + this.remarks +
                ")";
    }

    public int getId() {
        return id;
    }

    public String getDescription() {
        return description;
    }

    public String getNo() {
        return no;
    }
    public String getRemarks(){
        return remarks;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    private int id;
    private String description;
    private String no;
    private String remarks;
}
